package com.Register.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "志愿活动分页查询结果返回")
public class ActivityPageQueryVO implements Serializable {
    @Schema(description = "主键ID-也是活动编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "活动名称")
    private String activityName;

    @Schema(description = "活动组织")
    private String organization;

    @Schema(description = "招募人数")
    private Integer recruitNumber;

    @Schema(description = "文章类别")
    private String tag;

    @Schema(description = "剩余名额")
    private String remainder;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "begin_time",fill = FieldFill.INSERT)
    @Schema(description = "活动开始时间")
    private LocalDateTime beginTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "end_time",fill = FieldFill.INSERT)
    @Schema(description = "活动结束时间")
    private LocalDateTime endTime;
}
